package com.ruoyi.electronicFence.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.electronicFence.domain.TDeviceStatus;
import com.ruoyi.electronicFence.domain.TEfEquipmentDevice;
import com.ruoyi.electronicFence.domain.bo.TEfEquipmentDeviceBo;
import com.ruoyi.electronicFence.domain.TEfEquipmentDeviceVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 设备或场景与监测设备关联  Mapper接口
 *
 * @author sxygsj
 * @date 2024-05-29
 */
@Mapper
@DataSource(value = DataSourceType.SLAVE)
public interface TEfEquipmentDeviceMapper
{
    /**
     * 查询设备或场景与监测设备关联
     *
     * @param id 设备或场景与监测设备关联  主键
     * @return 设备或场景与监测设备关联
     */
    public TEfEquipmentDevice selectTEfEquipmentDeviceById(Long id);

    /**
     * 查询设备或场景与监测设备关联
     *
     * @param id 设备或场景与监测设备关联  主键
     * @return 设备或场景与监测设备关联
     */
    public TEfEquipmentDevice selectTEfEquipmentDeviceDetailsListById(Long id);


    /**
     * 查询设备或场景与监测设备关联
     *
     * @param id 设备或场景与监测设备关联  主键
     * @return 设备或场景与监测设备关联
     */
    public TEfEquipmentDevice selectTEfEquipmentDeviceByDeviceId(String deviceId);



    /**
     * 查询设备或场景与监测设备关联  列表
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 设备或场景与监测设备关联  集合
     */
    public List<TEfEquipmentDevice> selectTEfEquipmentDeviceList(TEfEquipmentDevice tEfEquipmentDevice);


    /**
     * 查询设备或场景与监测设备关联  列表
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 设备或场景与监测设备关联  集合
     */
    public List<TEfEquipmentDeviceVo> selectTEfEquipmentDeviceDetailsList(TEfEquipmentDevice tEfEquipmentDevice);

    /**
     * 查询设备或场景与监测设备关联  列表
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 设备或场景与监测设备关联  集合
     */
    public List<TDeviceStatus> selectTEfEquipmentDeviceDetailsListV2(TEfEquipmentDevice tEfEquipmentDevice);



    /**
     * 查询设备或场景与监测设备关联  列表
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 设备或场景与监测设备关联  集合
     */
    public List<TEfEquipmentDeviceVo> selectDetailsList(TEfEquipmentDeviceBo tEfEquipmentDevice);

    /**
     * 新增设备或场景与监测设备关联
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 结果
     */
    public int insertTEfEquipmentDevice(TEfEquipmentDevice tEfEquipmentDevice);

    /**
     * 新增设备或场景与监测设备关联
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 结果
     */
    public int insertEquipmentMonitorDevice(TEfEquipmentDevice tEfEquipmentDevice);

    /**
     * 修改设备或场景与监测设备关联
     *
     * @param tEfEquipmentDevice 设备或场景与监测设备关联
     * @return 结果
     */
    public int updateTEfEquipmentDevice(TEfEquipmentDevice tEfEquipmentDevice);

    /**
     * 删除设备或场景与监测设备关联
     *
     * @param id 设备或场景与监测设备关联  主键
     * @return 结果
     */
    public int deleteTEfEquipmentDeviceById(Long id);

    /**
     * 批量删除设备或场景与监测设备关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTEfEquipmentDeviceByIds(Long[] ids);


}
